I've tried using the xboxdrv and these are my results (any help at this point is helpful):
cat /proc/bus/input/devices
List of Devices:
First Device:
N: Name="Sony PLAYSTATION(R)3 Controller Motion Sensors"
H: Handlers=event1
Second Device:
N: Name="Sony PLAYSTATION(R)3 Controller"
H: Handlers=event2 js0
ls /dev/input/by-id/
event location by name for later use
List of Devices:
Fist Device:
usb-Sony_PLAYSTATION_R_3_Controller-event-if00
Second Device:
usb-Sony_PLAYSTATION_R_3_Controller-event-joystick
evtest /dev/input/event[•]
I ended up trying evtest /dev/input/event1 for N: Name="Sony PLAYSTATION(R)3 Controller Motion Sensors". This did not work.
evtest /dev/input/event2
This command works.
The device I'll be working with from now on is the following:
Second Device:
N: Name="Sony PLAYSTATION(R)3 Controller"
H: Handlers=event2 js0
List of control input buttons and ABS codes begin here.
D-Pad:
BTN_DPAD_UP
BTN_DPAD_DOWN
BTN_DPAD_LEFT
BTN_DPAD_RIGHT
Buttons:
BTN_SOUTH
BTN_EAST
BTN_WEST
BTN_NORTH
BTN_START
BTN_SELECT
Bumpers:
BTN_TL
BTN_TR
Triggers:
BTN_TL2
ABS_Z
BTN_TR2
ABS_RZ
Analog Sticks:
BTN_THUMBL
BTN_THUMBR
ABS_X
ABS_Y
ABS_RX
ABS_RY
In the end, I ended up placing this in the /etc/rc.local file
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \
--evdev /dev/input/by-id/usb-Sony_PLAYSTATION_R_3_Controller-event-joystick \
--silent \
--detach-kernel-driver \
--force-feedback \
--deadzone-trigger 15% \
--deadzone 4000 \
--trigger-as-button \
--mimic-xpad \
--dpad-as-button
--evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RX=x2,ABS_RY=y2,ABS_Z=lt,ABS_RZ=rt \
--evdev-keymap BTN_SOUTH=a,BTN_EAST=b,BTN_WEST=x,BTN_NORTH=y,BTN_TL=lb,BTN_TR=rb,BTN_THUMBL=tl,BTN_THUMBR=tr,BTN_SELECT=back,BTN_START=start,BTN_DPAD_UP=du,BTN_DPAD_DOWN=dd,BTN_DPAD_LEFT=dl,BTN_DPAD_RIGHT=dr \
--ui-buttonmap guide=void \
&
exit 0
And even then, I can't get retropie to recognize my controller as anything other than a playstation 3 controller AND now retropie won't finish rebooting.
It gets stuck after a message stating:
"You Xbox/Xbox360 controller should now be available as:
/dev/input/js1
/dev/input/event3
Press Ctrl-C to quit"
And then the next 3 lines are about Samba NMB Daemon being Started, Starting, and Started again. At this point the boot ceases all function.
When I try the following command I get the same error message at boot.
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \
--evdev /dev/input/event2 \
--silent \
--detach-kernel-driver \
--force-feedback \
--deadzone-trigger 15% \
--deadzone 4000 \
--trigger-as-button \
--mimic-xpad \
--dpad-as-button
--evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RX=x2,ABS_RY=y2,ABS_Z=lt,ABS_RZ=rt \
--evdev-keymap BTN_SOUTH=a,BTN_EAST=b,BTN_WEST=x,BTN_NORTH=y,BTN_TL=lb,BTN_TR=rb,BTN_THUMBL=tl,BTN_THUMBR=tr,BTN_SELECT=back,BTN_START=start,BTN_DPAD_UP=du,BTN_DPAD_DOWN=dd,BTN_DPAD_LEFT=dl,BTN_DPAD_RIGHT=dr \
--ui-buttonmap guide=void \
&
exit 0
I hope this information helps clarify my issue with this controller.